[//统一返回
    async function( $CANSHU){
       
        let $db = await db('pay_payment');
        let $DINGDAN =await  $db.Where({'out_trade_no':$CANSHU['out_trade_no']}).Find();
        if($DINGDAN){
            let $money = Mode("Tools").Jine($CANSHU['money']);
            if($DINGDAN['off'] == 1 && $money > 0){
                let $sql = "";
                let $gengxin = {
                    'off' : 2,
                    'paymoney':$money,
                    'ctime':Mode("Tools").Time(),
                    'transaction_id': $CANSHU['transaction_id'],
                    'huomoney':$CANSHU['huomoney']?$CANSHU['huomoney']:$money 
                };
                $sql += await $db.SetShiwu(true).Where({'id': $DINGDAN['id']}).Update( $gengxin  );
                for( var $k  in $gengxin){
                    $DINGDAN[$k] = $gengxin[$k];
                }
                let $fan = null;
                if( $DINGDAN['uid'] > 0){
                    $fan = await jiaqian( $DINGDAN['uid'] , 0,  $money , 0 , 0 , $CANSHU['out_trade_no'] ,$DINGDAN .ip ,"pay", $sql );
                }else{
                    $fan = await $db.ShiWu( $sql);
                }
                if($fan){
                    if($DINGDAN['callplus'] != ""){
                        if(global['Kuo_'+$DINGDAN['callplus']] && global['Kuo_'+$DINGDAN['callplus']].Pay_Call){
                            global['Kuo_'+$DINGDAN['callplus']].Pay_Call($DINGDAN);
                        }
                    }
                    return true;
                }else{
                    return false;
                }
            }
            return false;
        }
    }
]